﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsValidatePro _iCsValidatePro = null;

        public static ICsValidatePro CreateCsValidatePro()
        {
            if (_iCsValidatePro == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsValidatePro_Sys";
                _iCsValidatePro = (ICsValidatePro)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsValidatePro;
        }
    }
    public interface ICsValidatePro
    {
        String GetCsValidateProID(String Identifier);
        bool UpdateValidateProTable(DataTable dt);
        DataTable GetValidateProTable(String OrganID);
        DataTable GetValidateProDataByIDs(String ProIDs);
        DataTable GetValidateProDataByPage(String OrganID, int PageSize, int CurrentPage, int AllCount);
        int GetValidateProDataAllPageCount(String OrganID);
    }
}
